<!DOCTYPE html>
<!--suppress ALL-->
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>商品类型添加页面</title>
	<base th:href="@{/}"><!-- 不用base就使用th:src="@{/js/jquery.min.js} -->
<link rel="stylesheet" th:href="@{admin/css/bootstrap.min.css}" />
<body>
	<div th:include="admin/header"></div>
	<br><br><br>
	<div class="container">
		<div class="bg-primary"  style="width:70%; height: 60px;padding-top: 0.5px;">
	       <h3 align="center">添加商品</h3>
	   </div><br>
		<form th:action="@{/admin/addProduct}"
		 name="myform" method="post"
		 class="form-horizontal"
		 enctype="multipart/form-data" >
			<div class="form-group has-success">
				<label class="col-sm-2 col-md-2 control-label">商品名称</label>
				<div class="col-sm-4 col-md-4">
					<input type="text" class="form-control"
					 placeholder="请输入商品名"
					 name="proName"/>
				</div>
			</div>
			<div class="form-group has-success">
				<label class="col-sm-2 col-md-2 control-label">商品原价</label>
				<div class="col-sm-4 col-md-4">
					<input type="text" class="form-control"
					 placeholder="请输入商品原价"
					name="price"/>
				</div>
			</div>
			<div class="form-group has-success">
				<label class="col-sm-2 col-md-2 control-label">商品库存</label>
				<div class="col-sm-4 col-md-4">
					<input type="text" class="form-control"
					 placeholder="请输入商品库存"
					name="account"/>
				</div>
			</div>
			<div class="form-group has-success">
				  <label class="col-sm-2 col-md-2 control-label">商品图片</label>
				  <div class="col-sm-4 col-md-4">
		  				<input type="file" placeholder="请选择商品图片"  class="form-control" name="fileName"/>
				  </div>
			 </div>
			<div class="form-group has-success">
				<label class="col-sm-2 col-md-2 control-label">是否热销</label>
				<div class="col-sm-4 col-md-4 radio">
					<label> 
						<input type="radio" name="isHot" value="1">是
					</label>
					<label> 
						<input type="radio"  name="isHot" value="0">否
					</label>
				</div>
			</div>

			<div class="form-group has-success">
				<label class="col-sm-2 col-md-2 control-label">商品类型</label>
				<div class="col-sm-4 col-md-4">
					<select  name="proType" class="form-control">
						<option value="">-请选择-</option>
						<option value="摆件花艺">摆件花艺</option>
						<option value="壁挂">壁挂</option>
						<option value="心水特色">心水特色</option>
						<option value="花瓶花器">花瓶花器</option>
						<option value="创意家居">创意家居</option>
						<option value="布艺软饰">布艺软饰</option>
						<option value="蜡艺香薰">蜡艺香薰</option>
					</select>
				</div>
			</div>
			<div class="form-group has-success">
				<label class="col-sm-2 col-md-2 control-label">商品详细</label>
				<div class="col-sm-4 col-md-4">
					<input type="text" class="form-control"
						   placeholder="请输入商品详细"
						   name="content"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit"class="btn btn-success" >添加</button>
					<button type="reset" class="btn btn-primary" >重置</button>
				</div>
			</div>
		</form>
	</div>
</body>
</html>